﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BesAsm.Framework.Reporting
{
  /// <summary>
  /// A message that can be accumulated for reporting at the end of a process
  /// </summary>
  public class ReportableMessage
  {
    private DateTime _creationTime;
    /// <summary>
    /// Initializes a new instance of the <see cref="ReportableMessage"/> class.
    /// </summary>
    public ReportableMessage()
    {
      _creationTime = DateTime.Now;
    }

    /// <summary>
    /// A description of the message
    /// </summary>
    public string Description { get; set; }

    /// <summary>
    /// The type of error
    /// </summary>
    public ReportableMessageType MessageType { get; set; }

    public DateTime CreationTime
    {
      get { return _creationTime; }
    }
  }
}